package day06;

public class Class {

   private  int  cid;
   private String sname;
   private int  sage;
   private String  ssex;

    public static void forName(String s) {
    }

    public void setCid(int cid){
       this.cid=cid;
   }
   public int getCid(){
       return this.cid;
   }

    public void  setSname(String sname){
       this.sname=sname;
    }
    public  String getSname(){
       return this.sname;
    }

    public void  setSage(int sage){
       this.sage=sage;
    }
    public int getSage(){
       return this.sage;
    }

    public  void  setSsex(String ssex){
       this.ssex=ssex;
    }
    public  String getSsex(){
       return this.ssex;
    }

    public Class(){

    }
    public Class(int cid, String sname,int sage,String ssex){
        this.cid=cid;
        this.sname=sname;
        this.sage=sage;
        this.ssex=ssex;
    }
    public  void  myself(){
        System.out.println("你好啊"+this.sname);
        System.out.println("你的学号是"+this.cid);
        System.out.println("你今年"+this.sage+"岁");
        System.out.println("是个"+this.ssex+"孩");
    }

}
